<div class="eavFields index">
<?php 

	$paginator->options(array('url'=>$this->getPagingUrl()));
	$index->setData($fields, $fieldModelAlias);
	$showFields = ClassRegistry::getObject($fieldModelAlias)->getFields('group',"grid");
	$index->showFields($showFields);
	$index->sortableFields($showFields );
	$index->setAction(__('Edit'), array('action'=>"edit",":$fieldModelAlias.id"));
	$index->setAction(__('Delete'), array('action'=>"delete",":$fieldModelAlias.id"),$this->helpers,sprintf(__('Are you sure you want to delete this %s ?'),low($displayName)));
	if($useFieldset == true)
	{
		$index->addColumn('fieldset_id','createLinkableName');
	}
	echo $index->display();
	function createLinkableName($record)
	{	
		$html = ClassRegistry::getObject('view')->loaded['html'];
		$fieldModelAlias = ClassRegistry::getObject('view')->viewVars['fieldsetModelAlias'];
		return $html->link($record[$fieldModelAlias]['name'],array('action'=>"index",'fieldset' => $record[$fieldModelAlias]['id']));
	}
?>
</div>
<div class="actions">
	<ul>
		<li>
		<?php echo $html->link(sprintf(__('New %s', true),$displayName), array('action'=>'add')); ?>
		</li>
	</ul>
</div>
